<%@ page session="true"%>
<%@ page pageEncoding="UTF-8"%>
<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<link rel="stylesheet" type="text/css"
    href="${pageContext.request.contextPath}/css/login.css" />
<link rel="stylesheet" type="text/css"
    href="${pageContext.request.contextPath}/css/style.css" />
<link rel="stylesheet" type="text/css"
    href="${pageContext.request.contextPath}/css/animate-custom.css" />
<title>统一登录</title>    
<div class="container">
    <section>
        <div style="float:left;width:60%;"><img src="${pageContext.request.contextPath}/images/Logo.png"/></div>
        <div id="container_demo">
            <div id="wrapper" style="margin-top:30px;margin-left:42%;width:36%;">
                <div id="login" class="animate form">
                    <form:form method="post" id="fm1" cssClass="fm-v clearfix"
                        commandName="${commandName}" htmlEscape="true">
                        <form:errors path="*" cssClass="errors" id="status" element="div" />
                        <h1>登录</h1>
                        <p>
                            <label for="username" class="uname" data-icon="u"> 用户名</label>
                            <c:if test="${not empty sessionScope.openIdLocalId}">
                                <strong>${sessionScope.openIdLocalId}</strong>
                                <input type="hidden" id="username" name="username"
                                    value="${sessionScope.openIdLocalId}" />
                            </c:if>
                            <c:if test="${empty sessionScope.openIdLocalId}">
                                <spring:message code="screen.welcome.label.netid.accesskey"
                                    var="userNameAccessKey" />
                                <form:input cssClass="required" cssErrorClass="error"
                                    id="username" size="25" tabindex="1"
                                    accesskey="${userNameAccessKey}" path="username"
                                    autocomplete="false" htmlEscape="true" />
                            </c:if>
                        </p>
                        <p>
                            <label for="password" class="youpasswd" data-icon="p">密码</label>
                            <form:password cssClass="required" cssErrorClass="error"
                                id="password" size="25" tabindex="2" path="password"
                                accesskey="${passwordAccessKey}" htmlEscape="true"
                                autocomplete="off" />
                        </p>
                        <!-- <p class="keeplogin">
                            <input id="warn" name="warn" value="true" tabindex="3"
                                accesskey="<spring:message code="screen.welcome.label.warn.accesskey" />"
                                type="checkbox" /> <label for="warn"><spring:message
                                    code="screen.welcome.label.warn" />
                            </label>
                        </p> -->
                        <p><label>（温馨提醒：登录连续三次错误，账号将锁定5分钟。）</label></p>
                        <p class="login button">
                            <input type="hidden" name="lt" value="${flowExecutionKey}" /> <input
                                type="hidden" name="_eventId" value="submit" /> <input
                                class="btn-submit" name="submit" accesskey="l"
                                value="<spring:message code="screen.welcome.button.login" />"
                                tabindex="4" type="submit" /> <input class="btn-reset"
                                name="reset" accesskey="c"
                                value="<spring:message code="screen.welcome.button.clear" />"
                                tabindex="5" type="reset" />
                        </p>

                    </form:form>
                </div>
            </div>
        </div>
    </section>
</div>
